package com.chagee.store.operation.api.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Objects;

/**
 * 推送财务状态枚举
 * @Author : hk
 * @Date : 2025/1/13
 */

@Getter
@AllArgsConstructor
public enum PushFinanceStatusEnum {

	//未推送
	NOT_PUSH("NOT_PUSH", "未推送"),

	//推送成功
	SUCCESS("SUCCESS", "推送成功"),

	//推送失败
	FAILURE("FAILURE", "推送失败"),


	;

	private final String type;
	private final String desc;


	public static PushFinanceStatusEnum queryByType(String type) {
		for (PushFinanceStatusEnum value : values()) {
			if (Objects.equals(type, value.getType())) {
				return value;
			}
		}
		return null;
	}
}
